Full Selectors vs. Partial Selectors

In Studio, Selectors are of two types:

  1. Full Selectors

  2. Partial Selectors

Full Selectors

When automation is created through Basic Recorder, Full Selectors are generated. Full selectors start with a window or XML identifier, and they contain all the information of the UI element. They are suitable when the robot has to switch through multiple windows and the use of containers would add unnecessary complexity.

Partial Selectors

When automation is created through Desktop Recorder, Partial Selectors are generated. They do not contain the top-level window information. They are more suitable when the robot has to perform multiple actions in the same window or application. In these cases, the activities are placed inside a container, such as Attach Browser or Attach Window.

Difference between Full and Partial Selectors

The following table shows the difference between full and partial selectors.

Full Selectors

Partial Selectors

Contain all the elements needed to identify a UI element, including the top-level window

Do not contain the information of the top-level window; thus, the activities with partial selectors must be enclosed in containers

Generated by Basic Recorder

Generated by Desktop Recorder

Best-suited when the actions performed require switching between multiple windows

Best-suited for performing multiple actions in the same window